<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        let set = new Set([1,2,3]);
        let setArr = [...set].map(val => {
            return  val * 2
        });
        console.log(new Set(setArr));
    </script>
</head>
<body>
    
</body>
</html>